package com.xueyi.system.codeRecord.domain.po;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.xueyi.common.core.web.tenant.base.TBaseEntity;
import com.xueyi.system.codeRecord.domain.dto.CodeRecordDto;
import com.baomidou.mybatisplus.annotation.TableField;
import com.xueyi.common.core.annotation.Excel;

import java.time.LocalDateTime;

/**
 * 生成溯源码 持久化对象
 *
 * @author xueyi
 */
@TableName(value = "base_code_record", excludeProperty = {"name", "sort"})
public class CodeRecordPo extends TBaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 溯源码范围
     */
    @Excel(name = "溯源码范围")
    @TableField("code_range")
    private String codeRange;

    /**
     * 生成数量
     */
    @Excel(name = "生成数量")
    @TableField("num")
    private Integer num;

    /**
     * 打印模板
     */
    @Excel(name = "打印模板")
    @TableField("template_id")
    private String templateId;

    /**
     * 模板名称
     */
    @Excel(name = "模板名称")
    @TableField("template_name")
    private String templateName;

    /**
     * 包装id
     */
    @Excel(name = "包装id")
    @TableField("pack_id")
    private String packId;

    /**
     * 批次id
     */
    @Excel(name = "批次id")
    @TableField("batch_id")
    private String batchId;

    /**
     * 批次名称
     */
    @Excel(name = "批次名称")
    @TableField("batch_name")
    private String batchName;

    /**
     * 包装名称
     */
    @Excel(name = "包装名称")
    @TableField("pack_name")
    private String packName;

    /**
     * 产品id
     */
    @Excel(name = "产品id")
    @TableField("product_id")
    private String productId;

    /**
     * 产品名称
     */
    @Excel(name = "产品名称")
    @TableField("product_name")
    private String productName;

    /**
     * 采收时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @Excel(name = "采收时间", width = 30, dateFormat = "yyyy-MM-dd")
    @TableField("recovery")
    private LocalDateTime recovery;

    /**
     * 保质期
     */
    @Excel(name = "保质期")
    @TableField("expiration")
    private String expiration;

    /**
     * 联系电话
     */
    @Excel(name = "联系电话")
    @TableField("phone")
    private String phone;

    /**
     * 宣传语
     */
    @Excel(name = "宣传语")
    @TableField("publicity")
    private String publicity;

    /**
     * 状态
     */
    @Excel(name = "状态")
    @TableField("status")
    private String status;

    public String getBatchId() {
        return batchId;
    }

    public void setBatchId(String batchId) {
        this.batchId = batchId;
    }

    public String getBatchName() {
        return batchName;
    }

    public void setBatchName(String batchName) {
        this.batchName = batchName;
    }

    public void setCodeRange(String codeRange) {
        this.codeRange = codeRange;
    }

    public String getCodeRange() {
        return codeRange;
    }

    public void setNum(Integer num) {
        this.num = num;
    }

    public Integer getNum() {
        return num;
    }

    public void setTemplateId(String templateId) {
        this.templateId = templateId;
    }

    public String getTemplateId() {
        return templateId;
    }

    public void setTemplateName(String templateName) {
        this.templateName = templateName;
    }

    public String getTemplateName() {
        return templateName;
    }

    public void setPackId(String packId) {
        this.packId = packId;
    }

    public String getPackId() {
        return packId;
    }

    public void setPackName(String packName) {
        this.packName = packName;
    }

    public String getPackName() {
        return packName;
    }

    public void setProductId(String productId) {
        this.productId = productId;
    }

    public String getProductId() {
        return productId;
    }

    public void setProductName(String productName) {
        this.productName = productName;
    }

    public String getProductName() {
        return productName;
    }

    public void setRecovery(LocalDateTime recovery) {
        this.recovery = recovery;
    }

    public LocalDateTime getRecovery() {
        return recovery;
    }

    public void setExpiration(String expiration) {
        this.expiration = expiration;
    }

    public String getExpiration() {
        return expiration;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getPhone() {
        return phone;
    }

    public void setPublicity(String publicity) {
        this.publicity = publicity;
    }

    public String getPublicity() {
        return publicity;
    }

    @Override
    public void setStatus(String status) {
        this.status = status;
    }

    @Override
    public String getStatus() {
        return status;
    }

}
